package net.zoneland.knowledge.dao;

import net.zoneland.knowledge.model.UrgeHistory;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UrgeHistoryMapper {

    @Insert({
        "insert into AITK_URGE_HISTORY (ID, urge_uid, ",
        "urge_name, WORK_APPLY_ID,SUB_TASK_ID,SUB_TASK_NAME, ",
        "tiid,urge_type,CREATOR_UID,CREATE_TIME)",
        "values (#{id,jdbcType=VARCHAR}, #{urgeUid,jdbcType=VARCHAR}, ",
        "#{urgeName,jdbcType=VARCHAR}, #{workApplyId,jdbcType=VARCHAR},#{subTaskId,jdbcType=VARCHAR}, ",
        "#{subTaskName,jdbcType=VARCHAR},#{tiid,jdbcType=VARCHAR},#{urgeType,jdbcType=VARCHAR}, ",
        "#{creatorUid,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP}",
         ")"
    })
    int insert(UrgeHistory record);

}